package network;

import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

import javax.swing.ImageIcon;

public class LogIn extends Mensagem {

	private String nickname;
	private ImageIcon icon;
	private ObjectOutputStream out;
	private ObjectInputStream in;

	public LogIn(String nickname, ImageIcon icon, ObjectOutputStream out,
			ObjectInputStream in) {
		this.nickname = nickname;
		this.icon = icon;
		this.out = out;
		this.in = in;
	}

	public ImageIcon getIcon() {
		return icon;
	}

	public ObjectInputStream getIn() {
		return in;
	}
	
	public ObjectOutputStream getOut() {
		return out;
	}

	public String getTexto() {
		return nickname;
	}

	@Override
	public TipoM getTipo() {
		return TipoM.LOGIN;
	}
}